package pl.edu.mimuw.mas.util;

import java.io.Serializable;

public final class Position implements Serializable {
	
	private static final long serialVersionUID = 6486842980797109417L;
	
	public int x = 0;
	public int y = 0;
	
	public float z = 0.0f;
	
	public Position() {}
	
	public Position(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public boolean equals(Position pos) {
		return x == pos.x && y == pos.y;
	}
	
	public boolean equals(Position pos, Move mv) {
		return x == pos.x + mv.vx && y == pos.y + mv.vy;
	}
}
